.chat_window {
    position: relative;
    font-size: 0.3rem;
    background-color: #f0f0f0;

    .head {
        position: fixed;
        z-index: 5;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        height: 0.8rem;
        display: flex;
        align-items: center;
        gap: 0.15rem;
        background-color: #f0f0f0;

        .pre {
            width: 0.2rem;
            height: 0.2rem;
            border-top: 0.05rem solid #353535;
            border-left: 0.05rem solid #353535;
            transform: rotate(-45deg);
        }

        .chat_nick {
            color: #353535;
            font-weight: 600;
        }
    }

    .goods_detail {
        position: fixed;
        z-index: 5;
        top: 0.8rem;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        height: 1.8rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f0f0f0;

        .left {
            display: flex;
            gap: 0.15rem;

            .goods_img {
                width: 1.2rem;
                height: 1.2rem;
                border-radius: 0.12rem;
                overflow: hidden;
                background-color: pink;
                display: flex;
                justify-content: center;
                align-items: center;

                img {
                    width: 1.2rem;
                    border-radius: 0.12rem;
                }
            }

            .goods_msg {
                display: flex;
                flex-direction: column;
                justify-content: center;

                .goods_p1 {
                    font-size: 0.34rem;
                    font-weight: 600;
                }

                .goods_p2 {
                    font-size: 0.28rem;
                    color: #999;
                }
            }
        }

        .buy_now {
            width: 1.6rem;
            height: 0.6rem;
            border-radius: 0.3rem;
            text-align: center;
            line-height: 0.6rem;
            user-select: none;
            -webkit-user-select: none;
            background-color: rgb(254, 79, 36);
            color: #fff;
        }
    }

    .window_main {
        position: relative;
        width: 95%;
        min-height: 100vh;
        height: 100%;
        margin: auto;
        box-sizing: border-box;
        padding-top: 2.6rem;
        overflow: hidden;
        margin-bottom: 1rem;

        .first_date {
            width: 100%;
            height: 0.6rem;
            text-align: center;
            line-height: 0.6rem;
            font-size: 0.26rem;
            color: #999;
        }
    }

    .chat_input {
        position: fixed;
        z-index: 5;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1rem;
        display: flex;
        align-items: center;
        background-color: #f6f6f6;

        input {
            width: 8rem;
            height: 0.76rem;
            background-color: #fff;
            border-radius: 0.1rem;
            box-sizing: border-box;
            padding: 0 0.2rem;
            font-size: 0.28rem;
            transition: width 0.3s;
            margin-left: 0.8rem;

            &.dec {
                width: 6.8rem;
                transition: width 0.3s;
            }
        }

        .expression_icon {
            width: 0.6rem;
            height: 0.6rem;
            border-radius: 0.12rem;
            background: url("@images/expression-icon.webp") no-repeat center
                center;
            background-size: 100% 100%;
            margin-left: 0.3rem;
        }

        .chat_send {
            width: 0;
            height: 0.6rem;
            background-color: #06c061;
            color: #fff;
            border-radius: 0.1rem;
            text-align: center;
            line-height: 0.6rem;
            font-size: 0.32rem;
            overflow: hidden;
            transition: width 0.3s;
            margin-left: 0.3rem;

            &.add {
                width: 1.2rem;
                transition: width 0.3s;
            }
        }
    }
}
